const { contextBridge, ipcRenderer } = require('electron')
const fs = require('path')

console.log(process.platform)
console.log(fs)

console.log(ipcRenderer)

function invoke(channel, someArgument) {
  return ipcRenderer.invoke(channel, someArgument)
}

contextBridge.exposeInMainWorld('callNode', {
  platform: process.platform,
  invoke,
})
